testgtk: Don't set colormap when creating GDK windows
authorBenjamin Otte <otte@redhat.com>
Sat, 28 Aug 2010 16:05:30 +0000 (18:05 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:31 +0000 (15:11 +0200)
tests/testgtk.c

index a699e54b162a92fb1841a7d04f49c93fafba6510..73141191144aedf7406889d953163ee1a652f939 100644 (file)
@@ -552,10 +552,9 @@ create_pattern (GtkWidget   *widget,
              attributes.wclass = GDK_INPUT_OUTPUT;
              attributes.event_mask = GDK_EXPOSURE_MASK;
              attributes.visual = gtk_widget_get_visual (widget);
-             attributes.colormap = gtk_widget_get_colormap (widget);
              
              child = gdk_window_new (parent, &attributes,
-                                     GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP);
+                                     GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL);
 
              pattern_set_bg (widget, child, level);